import 'package:flutter/material.dart';


class buttonContent extends StatelessWidget {
  buttonContent(
      {required this.icon,
        required this.textStyle,
        required this.textContent,
        this.paddingNumber=0.0});

  final TextStyle textStyle;
  final String textContent;
  final Icon icon;
  final double paddingNumber;

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Expanded(
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.start,
            children: [
              Padding(
                padding: EdgeInsets.all(paddingNumber),
                child: icon,
              ),
            ],
          ),
        ),
        Expanded(
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.end,
            mainAxisAlignment: MainAxisAlignment.end,
            children: [
              Padding(
                padding: const EdgeInsets.symmetric(horizontal: 8.0),
                child: Text(
                  textContent,
                  style: textStyle,
                ),
              )
            ],
          ),
        )
      ],
    );
  }
}